package com.xmall.service;


import com.xmall.bean.bo.CommentBO;
import com.xmall.bean.bo.OrderShipStatus;
import com.xmall.bean.table.OrderGoods;
import com.xmall.bean.vo.ListDataVo;
import com.xmall.bean.vo.OrderDetailVO;
import com.xmall.bean.vo.WxIndexOrderStatusVo;

import java.util.Map;

public interface OrderService {
    ListDataVo showList(Integer page, Integer limit, String sort, String order, Integer userId, String orderSn, Short orderStatusArray);

    OrderDetailVO showDetail(Integer id);

    void delete(Map<String,Integer> params);

    Map<String, Object> queryDetail(Integer orderId);

    WxIndexOrderStatusVo queryOrderStatusByUserId(Integer userId);

    Map<String, Object> queryList(Map<String, String> params);

    OrderGoods queryGoods(Integer orderId, Integer goodsId);

    void addComment(CommentBO commentBO);

    void cancelOrder(Integer orderId);

    void confirmOrder(Integer orderId);

    void refund(Integer orderId);

    Map<String, Integer> submit(Map<String, String> params);

    void prepay(Integer id);

    void shipGoodsByOrdesId(OrderShipStatus orderShipStatus);
}
